package xyz.vmcserver.wdibbs.model.dao;

import org.apache.ibatis.annotations.Param;
import xyz.vmcserver.wdibbs.model.po.ArticleView;
import xyz.vmcserver.wdibbs.model.vo.Article;

import java.util.List;

public interface ArticleMapper {

    void insertArticle(Article article);

    ArticleView selectArticleViewByContent(String content);

    List<ArticleView> selectLatestArticleView(Integer page);

    Integer queryArticleNumber();

    List<ArticleView> searchArticleByKeyAndValuePages(@Param("value") String value ,@Param("page") Integer page ,@Param("sortType") String sortType,@Param("sortValue")String sortValue);

}
